<?php

namespace app\modules\admin\models;

use Yii;

/**
 * This is the model class for table "imgs".
 *
 * @property string $img_id
 * @property string $imgUrl
 * @property string $meta_key
 * @property string $meta_value
 */
class Imgs extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'imgs';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['meta_value'], 'integer'],
            [['imgUrl'], 'string', 'max' => 255],
            [['meta_key'], 'string', 'max' => 32],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'img_id' => Yii::t('app', 'Img ID'),
            'imgUrl' => Yii::t('app', 'Img Url'),
            'meta_key' => Yii::t('app', 'Meta Key'),
            'meta_value' => Yii::t('app', 'Meta Value'),
        ];
    }
}
